<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="cn.jhc.bean.UserBean"%>
<%
	UserBean user = (UserBean)session.getAttribute("user");
	if(null ==user){
		String getb=(String)request.getParameter("getb");
		RequestDispatcher dispatcher = request.getRequestDispatcher("/login.jsp");
		dispatcher.forward(request, response);
		return;
	}
%>   
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加留言</title>
</head>
<body>
	<form method="post" action="./addmessage.do">
		<p>
			<label for="title">标题:</label>
			<input type="text" name="title" width="120px" value="标题不能为空"/>
		</p>
		<p>
			<label for="content">内容</label>
			<textarea rows="10" cols="30" name="content">内容不能为空</textarea>
		</p>
		<p>
			<input type="hidden" name="page" value="1">
			<input type="submit" value="提交"></input>
			<input type="reset"/>
		</p>
	</form>
</body>
</html>